chore: merge workflow agent config for resource selection#1163
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR modifies ChangesMerged Job-Agent Config Routing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes workflow job-agent routing so that resource-selection selectors evaluate against the merged agent configuration (runner/base config + per-job overrides), enabling correct dispatch when key routing fields (e.g., serverUrl) are only present in per-job config.
Changes:
- Update
planDispatchesto pass anoapi.JobAgentwhoseConfigis the merged config intoMatchJobAgentsWithResource. - Add a regression test ensuring resources route correctly when
serverUrlis supplied only via per-job config entries.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/workspace-engine/svc/http/server/openapi/workflows/dispatch.go | Ensure selector matching uses merged job-agent config (not only runner config). |
| apps/workspace-engine/svc/http/server/openapi/workflows/workflows_test.go | Add coverage for routing based on merged per-job config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
Bug Fixes
Tests